<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/6 0006
 * Time: 9:42
 */
namespace app\controllers;

use Yii;
use yii\web\Controller;
use app\models\Main;

class MainController extends Controller
{

    /**
     * @var string layout
     * layout 获取数据
     * layout 除添加模块 添加模块类型  构建静态页面三个固定选项
     */
    
    public $layout = 'main';
    
    public function actionIndex () {
        $model = new Main();
        
        
        return $this->render('index',[
            'model'=>$model,
        ]);
    }
    
    public function actionSettings () {
        
    }


    public function actionRbac () {
        
    }
    
}